package com.telecom.cms.service;

import java.util.HashMap;
import java.util.List;

import com.telecom.cms.dao.SysDepartDAO;
import com.telecom.cms.dao.SysLocLatnDAO;
import com.telecom.cms.dto.SysLocLatn;
import com.telecom.cms.util.Constant;

public class SysLocLatnMgr {
   
	public List findall(){
		List result= (new SysLocLatnDAO()).findAll();
		return result;
	}
	
	public List findall(String latnid){
		if (latnid.equals((new Constant()).getPara("PROVINCEID")))
			return findall();
		List result=(new SysLocLatnDAO()).findAll(latnid);
		return result;
	}
	
	public HashMap findallmap(){
		HashMap result= (new SysLocLatnDAO()).findAllMap();
		return result;
	}
	
	public SysLocLatn findbyid(String latnid){
		SysLocLatn result= (new SysLocLatnDAO()).findById(latnid);
		return result;
	}

}
